package com.gwtplatform.samples.hplace.client;

import com.google.gwt.inject.client.AbstractGinModule;
import com.google.inject.Singleton;

import com.gwtplatform.samples.hplace.client.attacher.RootPanelAttacherModule;
import com.gwtplatform.samples.hplace.client.breadcrumbs.BreadcrumbsPresenter;
import com.gwtplatform.samples.hplace.client.breadcrumbs.BreadcrumbsPresenterImpl;
import com.gwtplatform.samples.hplace.client.home.HomePresenter;
import com.gwtplatform.samples.hplace.client.product.ProductPresenter;
import com.gwtplatform.samples.hplace.client.productlist.ProductListPresenter;

public class ClientModule extends AbstractGinModule {
    @Override
    protected void configure() {
        install(new RootPanelAttacherModule());
        bind(BreadcrumbsPresenter.class).to(BreadcrumbsPresenterImpl.class).in(Singleton.class);
        bind(HomePresenter.class).in(Singleton.class);
        bind(ProductPresenter.class).in(Singleton.class);
        bind(ProductListPresenter.class).in(Singleton.class);
    }
}
